Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions for Getting and Playing Movies


Movie Functions

The Movie Toolbox provides a set of functions that allow your application to create, access, and convert movie files. Movie files contain data for QuickTime movies. You can also use the Movie Toolbox to load movies into memory, in preparation for working with the movie. These functions differ based on where the movie is stored.

Before your application can play a movie, you must first open the file that contains the movie. Your application can use the OpenMovieFile function (described on page 2-86) to open a movie file. Once you are done with the file, your application releases the file by calling the CloseMovieFile function. Your application can create and open a new movie file by calling the CreateMovieFile function. Your application can delete a movie file by calling the DeleteMovieFile function.

You can use the NewMovie function to create a new empty movie. If your application is loading a movie from an existing file, use either the NewMovieFromFile function or the NewMovieFromDataFork function. The NewMovieFromFile function works with the file reference number you obtain from the OpenMovieFile function. The NewMovieFromDataFork function works with movies stored in your document file's data fork. Your application can then use the functions described in "Saving Movies," which begins on page 2-87, to load and store movies.

You can use the ConvertFileToMovieFile function to specify an input file and convert it to a movie file. The ConvertMovieToFile takes a specified movie (or a single track within that movie) and converts it into an output file.

Once you are finished working with a movie, you should release the resources used by the movie by calling the DisposeMovie function.


Subtopics
NewMovieFromFile
NewMovieFromHandle
NewMovie
ConvertFileToMovieFile
ConvertMovieToFile
DisposeMovie
CreateMovieFile
OpenMovieFile
CloseMovieFile
DeleteMovieFile

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996